import { Component, OnInit } from '@angular/core';

import { MyCalendarComponent } from './calendar/calendar.component';

declare const moment;
declare const Blazy;

@Component({
    selector: 'app-home',
    templateUrl: './home.component.html',
    styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
    today: string;
    dayOfWeek: string;

    constructor() {
        moment.locale('zh-cn'); // 设置中文格式
    };

    ngOnInit() {
        this.dayOfWeek = moment().format('ddd');
        this.today = moment().format('MMMM Do');   
        let blazy = new Blazy({
            src: 'data-blazy'
        });
    }

}
